/*
 * common.h
 *
 *  Created on: 5 sept. 2011
 *      Author: cedric
 */

#ifndef COMMON_H_
#define COMMON_H_

#include <stdint.h>

#define window_t double
#define max(a,b) a>b?a:b
#define min(a,b) a>b?b:a
#define buffer_size_t uint64_t

//enum for list of possible window functions
typedef enum {
	WINDOW_BLACKMAN, WINDOW_KAISER, WINDOW_NONE
} my_resampler_window_function;



uint32_t lcm(uint32_t a, uint32_t b);
window_t sinc_none(int32_t i, uint32_t cutoff_freq, uint32_t M);
window_t sinc_blackman(int32_t i, uint32_t cutoff_freq, uint32_t M);

#endif /* COMMON_H_ */
